<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<div id="template_save_main_dev_id" >
	<H3 style="text-align:center;">Template Save Dialog</H3>
	<form:form id="parameterTemplateSaveForm" method="get" action="save_consumer_string.htm" name="apiEditForm" commandName="SavedAPIModel" >
		<table>
			<tr>
				<td id="textFieldProp">Template Id</td>
				<td>
					<form:input type="text" id="stringId" path="templateId"/>
				</td>
			</tr>
			<tr>
				<td id="textFieldProp">Api String</td>
				<td>		
			 		<textarea name="apiString" cols="60" rows="40"><c:out value="${GenericAPIExecutionPageController_CONSUMER_STRING_HIDDEN}"/></textarea>
				</td>
			</tr>
			
			<tr>
                <td></td>
                <td></td>
                <td style="vertical-align:bottom;">
                    <input type="submit" id="saveJsonApiString" name="searchApi" value="Save" class="button_style">
                </td>
                <td style="vertical-align:bottom;">
                    <input type="submit" id="closeSaveDialog" name="closeSaveDialog" value="Cancel" class="button_style">
                </td>
            </tr>

		</table>
		
	</form:form>

</div>
<script type="text/javascript">
		dojo.addOnLoad(function() {
			Spring.addDecoration(new Spring.AjaxEventDecoration({
    			elementId:'searchApi', 
    			event:'onclick',
    			formId:'parameterTemplateSaveForm',
    			params: {fragments: "template_save_main_dev_id"}
    		}));
		});
</script>